package com.example.fengyungo.service;

import com.example.fengyungo.domain.pojo.OrderDriver;

import java.util.List;

public interface OrderDriverService {

    /**
     * 司机愿意接收订单，等待用户回应
     * @param orderDriver OrderDriver
     * @return Integer
     */
    Integer addOrderDriver(OrderDriver orderDriver);

    /**
     * 查询愿意接收订单的司机
     * @param number 订单编号
     * @return List<OrderDriver>
     */
    List<OrderDriver> getOrderDriverByNumber(String number);

    /**
     * 司机取消订单
     * @param orderDriver OrderDriver
     * @return Integer
     */
    Integer cancelAcceptOrder(OrderDriver orderDriver);

}
